package org.smart4j.framework.common.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Optional;

/**
 * 表单参数
 *
 * @author YooLin1c
 * @version 1.0.0
 * @since 2018-02-07 19:09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FormParam {
    /**
     * 字段名
     */
    private String fieldName;
    /**
     * 字段值
     */
    private Object fieldValue;

    public static void main(String[] args) {
        Optional<Integer> optional = Optional.empty();
        System.out.println(optional.isPresent());
        System.out.println(optional.get());
        System.out.println(optional.get().toString());
    }
}
